/**
 * @Author: 健聪
 * @Description: 默认参数
 * @Date: 2024/1/12
 */
void main() {
  printPerson("李四");
  printPerson("李四", age: 20);
  printPerson("李四", gender: "女");
}

// 默认参数
printPerson(String name, {int age = 30, String gender = "男"}) {
  print('name: $name, age: $age, gender: $gender');
}
